;; startup
(setq inhibit-startup-screen t
      make-backup-files nil
      org-startup-indented t)

;; line numbers
;(setq display-line-numbers-type 't) ;; 'relative or 't
(global-display-line-numbers-mode t)

;;设置系统编码，避免乱码出现
;(prefer-coding-system 'utf-8)
;(set-default-coding-systems 'uft-8)
;(set-terminal-coding-system 'uft-8)
;(set-keyboard-coding-system 'uft-8)
;(setq default-buffer-file-coding-system 'utf-8)

(prefer-coding-system 'utf-8)
(unless system-type 'ms-dos
    (set-selection-coding-system 'utf-8))

;; 设置垃圾回收阈值，加快启动速度
(setq gc-cons-threshold most-positive-fixnum)



(provide 'init-startup)
